<script type="text/javascript">
function save(form_tag){
	$(form_tag).submit();
}
function save_and_new(form_tag){
	$(form_tag).append("<input type='hidden' name='save_and_new' value='save_and_new' />");
	$(form_tag).submit();
}
function new_entry() {
	var new_entry_link = "<%= new_entry_link rescue '#' -%>";
	window.location = new_entry_link;
}
</script>

<div class="box">
	<div class="border clearfix th pth">
		<a class="btt bttb"  onclick="save_and_new('#form')">保存并新增</a>
		<a class="btt mr20"  onclick="save('#form')">保存</a>
		<a class="btt bttb"  onClick="new_entry()">新增</a>
<!-- 
<a class="btt" href="javascript:void(0);">复制</a>
<a class="btt mr20" href="javascript:void(0);">删除</a>
<a class="btt" href="javascript:void(0);">查询</a>
<a class="btt" href="javascript:void(0);">打印</a>
-->
		
		<%= yield :extra %>
	</div>
</div>
